package com.ksyun.cloudhostalarmprocessing.common;


import com.ksyun.cloudhostalarmprocessing.entity.Metrics;

import java.util.List;
import java.util.UUID;

public class MetricResponse extends Response{

    private final List<List<Metrics>> metrics;

    public MetricResponse(Integer code, String requestId, String Message, List<List<Metrics>> metrics) {
        super(code, requestId, Message);
        this.metrics = metrics;
    }

    public static MetricResponse MetricOk(List<List<Metrics>> metrics) {
        return new MetricResponse(CodeEnum.SUCCESS.getCode(), UUID.randomUUID().toString(),"ok",metrics);
    }

    public List<List<Metrics>> getMetrics() {
        return metrics;
    }
}
